<template>
  <a-modal v-model:open="visible" :footer="null" centered>
    <div style="height: 30px"></div>
    <a-image :src="imgSrc" />
  </a-modal>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const visible = ref(false)

let imgSrc = ref<string>('')
const setVisible = (flag: boolean, imgLink: string) => {
  visible.value = flag
  imgSrc.value = imgLink
}

const emit = defineEmits<{
  refresh: []
}>()

defineExpose({
  setVisible,
})
</script>
<style scoped lang="less"></style>
